//
//  ChatViewController.m
//  RongIMDemo
//
//  Created by 崔逢举 on 2020/2/6.
//  Copyright © 2020 崔逢举. All rights reserved.
//

#import "ChatViewController.h"
@interface ChatViewController ()

@end

@implementation ChatViewController

- (instancetype)initWithUserName:(NSString *)userName targetId:(NSString *)targetId {
    self = [super init];
    if (self) {
        self.navigationItem.title = userName;
        self.enableNewComingMessageIcon = YES; //开启消息提醒
        self.enableUnreadMessageIcon = YES;
        self.targetId = targetId;
        self.conversationType = ConversationType_PRIVATE;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
